#include<stdio.h>
int main()
{
	int a,b,c,d,n,i,x;
	a=0;
	b=0;
	c=0;
	d=0;
	scanf("%d",&n);
	for (i=1;i<=n;i++)
	{
		scanf("%d",&x);
		if(x>=0&&x<=18) a++;
		else  if(x>=19&&x<=35) b++;
		else  if(x>=36&&x<=60) c++;
		else d++;
	}
	printf("%0.2lf%%\n%0.2lf%%\n%0.2lf%%\n%0.2lf%%\n",a*100.0/n,b*100.0/n,c*100.0/n,d*100.0/n);
}
